import request from '../utils/request'

// 查询图片列表
export function listImages(query) {
  return request({
    url: '/AI/createimg/list',
    method: 'get',
    params: query
  })
}

// 上传新图片
export function uploadImage(data) {
  return request({
    url: '/AI/createimg',
    method: 'post',
    data: data
  })
}

// 删除图片
export function deleteImage(createimgId) {
  return request({
    url: `/AI/createimg/${createimgId}`,
    method: 'delete'
  })
}

// 获取图片详情
export function getImageInfo(createimgId) {
  return request({
    url: `/AI/createimg/${createimgId}`,
    method: 'get'
  })
} 